<!DOCTYPE html>
<html>
<head> 
<#assign base=request.getContextPath()/>
<title>所有学习课程</title>

<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
<link type="text/css" href="${base}/css/style.css" rel="stylesheet"/>
<script type="text/javascript" src="${base}/js/func.js"></script>

</head>



<body>
<script type="text/javascript">
function f1(){
 var tab2=document.getElementById("tab2");
 tab2.style.display=(tab2.style.display=="none"?"":"none");
}
   
$(document).ready(function(){
  $("#flip").click(function(){
    $("#tab2").slideDown("slow");
  });
  $("#close").click(function(){
  $("#tab2").hide(1000);
  });
});


</script>


<h1 style="text-align:center;font-family:arial;color:block;letter-spacing:2px;"><font size="50">小学生答题测试系统</font></h1>
	<p style="text-align:center;word-spacing:5px">
	<font size="6">
    <a href="/introduce.html">首页</a>&nbsp;
    <a href="/classes.html">教学班</a>&nbsp;&nbsp;
    <a href="/student.html">学生</a>&nbsp;&nbsp;
    <a href="/teacher.html">老师</a>&nbsp;&nbsp;
    <a href="/course.html">课程</a>&nbsp;&nbsp;
    <a href="/question.html">题库</a>&nbsp;&nbsp;
    <a href="/exam.html">测验</a>&nbsp;&nbsp;
    <a href="/loginUser.html">登录</a>&nbsp;&nbsp;
    <a href="/logout.html">退出</a>&nbsp;&nbsp;
    </font>
    </p>
    
<div style="border-style:solid; border-color:#98bf21;width:400; height:150">
<table width=700 height=150 align="center">
  <tr>
    <th>课程ID</th>
    <th>课程Number</th>
    <th>课程名字</th>
    <th>学期</th>
    <th>其他功能</th>
  </tr>

  <#list courselist as co>
  <tr align="center">
  <td>${co.courseId}</td>
  <td>${co.courseNumber}</td>
  <td>${co.courseName}</td>
  <td>${co.semester}</td>

  <td><a href="/course/delete?id=${co.courseId}">删除</a></td>
  </tr>
  </#list>
</table>
</div>

<div style="text-align:center;font-family:arial;color:block;letter-spacing:2px;">
</p class="one">
<font size="4">
<p class="flip">
<input id="flip" type="button" onclick="f1()" value="新建">
</p>
<form class="tab2" id="tab2" method="post" action="/course/insert" style="display:none" >
   <label>课程ID:</label><input type="text" id="courseId" name="courseId"><br>
   <label>课程Number:</label><input type="text" id="courseNumber" name="courseNumber"><br>
   <label>课程名字:</label><input type="text" id="courseName" name="courseName"><br>
   <label>学期:</label><input type="text" id="semester" name="semester"><br>
   <input type="submit" id="submit" value="提交">
   <input type="button" id="close"  value="关闭">
 </form>
 </font>
 </p>
 </div>



</body>
</html>
